<?php
class Book extends Model{
	protected $table_name = 'shouce_book';
	
	
	public $book_define = array(
		// 'book_id'=>array('id'=>$id,'title'=>#title,'lang'=>'en/cn')
		'1'=>array('id'=>1,'title'=>'JavaScript: The Definitive Guide, Sixth Editio javaScript权威指南(第6版) pdf 文字版','lang'=>'en'),
	);
	
		
	//是否有book的编辑权限  TODO:细化各个项目权限 一天的权限
	public function power() {
		$line = 49;
		$power = obj('User')->get_power();
		if($power > $line ) return true;
		return false;
	}
	
	
}
?>